package pk.campustour;

import java.util.Timer;
import java.util.TimerTask;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.view.Menu;
import android.widget.TextView;

public class LauncherActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launcher);
        int timeout = 4000; // make the activity visible for 4 seconds

        Timer timer = new Timer();
        timer.schedule(new TimerTask() {

            @Override
            public void run() {
                finish();
                Intent homepage = new Intent(LauncherActivity.this,MainActivity1.class);
                startActivity(homepage);
            }
        }, timeout);
        
        TextView tv = (TextView) findViewById(R.id.textView1);
        Typeface face = Typeface.createFromAsset(getAssets(), "fonts/Stroke.ttf");
        tv.setTypeface(face);
       /* TextView tv = (TextView) findViewById(R.id.textView1);
        Typeface face = Typeface.createFromAsset(getAssets(),
                    "fonts/Stroke.ttf");
        tv.setTypeface(face);*/
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_launcher, menu);
        return true;
    }
    
}
